package com.kensure.shike.baobei.model;

import java.util.Date;
import java.util.List;

import co.kensure.frame.BaseInfo;
import co.kensure.mem.DateUtils;

import com.kensure.shike.changshang.model.ChangShang;
import com.kensure.shike.constant.BusiConstant;
import com.kensure.shike.sys.service.SKDictService;

/**
 * 宝贝信息对象类
 * 
 * @author fankd created on 2019-6-10
 * @since
 */
public class SKBaobei extends BaseInfo {

	private static final long serialVersionUID = 3545276994084105527L;

	/** 主键 */
	private Long id;
	/** 商家id */
	private Long sjid;

	/** 宝贝标题 */
	private String title;

	/** 主图链接 */
	private String picurl;

	/** 一口价 */
	private Double salePrice;

	/** 会员价 */
	private Double vipPrice;

	/** 砍价最低价 */
	private Double minPrice;
	/** 每次砍价最高砍多少 */
	private Double peacePrice;

	/** 宝贝分类id */
	private Integer typeid;

	/** 流程状态 0编辑中，9已发布，-1已下架 */
	private Integer status;

	/** 状态，0是正在活动，1是删除 */
	private Integer isDel;

	/** 商品类型,1：正常商品、2：砍价商品、3：代金券 */
	private Integer hdtypeid;
	/** 代金券数额 */
	private Double djqse;
	/** 是否可退，1是，0否 */
	private Integer ketui;

	/** 最低砍价次数 */
	private Integer kjcs;
	/** 发布时间 */
	private Date publishTime;

	/** 排序 */
	private Integer disorder;

	/** 销售数量 */
	private Integer salenum;
	/** 人气 */
	private Integer renqi;

	/** 截至时间 */
	private Date timeExpire;

	/** 品牌 */
	private String pinpai;
	/** 视频 */
	private String spurl;
	/** 款号 */
	private String code;
	/** 分润方式，1是按比例，2是按价格 */
	private Integer fenrunTypeid;
	/** 一级分润-普通会员 */
	private Double vip1Fenrui1;
	/** 一级分润-黄金会员 */
	private Double vip1Fenrui2;
	/** 一级分润-铂金会员 */
	private Double vip1Fenrui3;
	/** 二级分润-黄金会员 */
	private Double vip2Fenrui2;
	/** 二级分润-铂金会员 */
	private Double vip2Fenrui3;
	/** 配送方式 kd 快递，zt：自提，zs：自送 */
	private String peisong;
	
	/**坐标 */
	private String zuobiao;
	/**地址 */
	private String dizhi;
	/**标签 */
	private String tag;
	/** 推荐人1 */
	private Long tjr1;
	/** 推荐人2 */
	private Long tjr2;

	/** 图片 */
	private List<SKBaobeiTP> pics;
	/** 详情 */
	private SKBaobeiDetail detail;
	/** 宝贝进销情况 */
	private SKBaobeiSale sKBaobeiSale;

	/** 颜色图片 */
	private List<SKBaobeiYansePic> yansePics;

	/** 厂商 */
	private ChangShang changshang;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPicurl() {
		return picurl;
	}

	public void setPicurl(String picurl) {
		this.picurl = picurl;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public Double getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(Double vipPrice) {
		this.vipPrice = vipPrice;
	}

	public Double getMinPrice() {
		return minPrice;
	}

	public void setMinPrice(Double minPrice) {
		this.minPrice = minPrice;
	}

	public Double getPeacePrice() {
		return peacePrice;
	}

	public void setPeacePrice(Double peacePrice) {
		this.peacePrice = peacePrice;
	}

	public Integer getTypeid() {
		return typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Integer getHdtypeid() {
		return hdtypeid;
	}

	public String getHdtypeidStr() {
		String temp = "普通商品";
		if (hdtypeid == null) {

		} else if (hdtypeid == 2) {
			temp = "砍价商品";
		} else if (hdtypeid == 3) {
			temp = "代金券";
		}
		return temp;
	}

	public void setHdtypeid(Integer hdtypeid) {
		this.hdtypeid = hdtypeid;
	}

	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getDisorder() {
		return disorder;
	}

	public void setDisorder(Integer disorder) {
		this.disorder = disorder;
	}

	public List<SKBaobeiTP> getPics() {
		return pics;
	}

	public void setPics(List<SKBaobeiTP> pics) {
		this.pics = pics;
	}


	public SKBaobeiDetail getDetail() {
		return detail;
	}

	public void setDetail(SKBaobeiDetail detail) {
		this.detail = detail;
	}

	public String getDownloadUrl() {
		String temp = BusiConstant.getHttpsFullUrl("/file/download.do?id=") + this.id;
		return temp;
	}

	public String getStatusStr() {
		String temp = SKDictService.getDictCache(1, this.status + "").getName();
		return temp;
	}

	public Integer getKjcs() {
		return kjcs;
	}

	public void setKjcs(Integer kjcs) {
		this.kjcs = kjcs;
	}

	public Integer getSalenum() {
		return salenum;
	}

	public void setSalenum(Integer salenum) {
		this.salenum = salenum;
	}

	public Date getTimeExpire() {
		return timeExpire;
	}

	public void setTimeExpire(Date timeExpire) {
		this.timeExpire = timeExpire;
	}

	public String getPinpai() {
		return pinpai;
	}

	public void setPinpai(String pinpai) {
		this.pinpai = pinpai;
	}

	public String getSpurl() {
		return spurl;
	}

	public void setSpurl(String spurl) {
		this.spurl = spurl;
	}

	public Integer getRenqi() {
		return renqi;
	}

	public void setRenqi(Integer renqi) {
		this.renqi = renqi;
	}

	
	public List<SKBaobeiYansePic> getYansePics() {
		return yansePics;
	}

	public void setYansePics(List<SKBaobeiYansePic> yansePic) {
		this.yansePics = yansePic;
	}

	public String getTimeExpireTime() {
		String temp = "";
		if (timeExpire != null) {
			temp = DateUtils.format(timeExpire, DateUtils.DATE_FORMAT_PATTERN);
		}
		return temp;
	}

	public String getTimeExpireDay() {
		String temp = "";
		if (timeExpire != null) {
			temp = DateUtils.format(timeExpire, DateUtils.DAY_FORMAT);
		}
		return temp;
	}

	public SKBaobeiSale getsKBaobeiSale() {
		return sKBaobeiSale;
	}

	public void setsKBaobeiSale(SKBaobeiSale sKBaobeiSale) {
		this.sKBaobeiSale = sKBaobeiSale;
	}

	public Integer getFenrunTypeid() {
		return fenrunTypeid;
	}

	public void setFenrunTypeid(Integer fenrunTypeid) {
		this.fenrunTypeid = fenrunTypeid;
	}

	public Double getVip1Fenrui1() {
		return vip1Fenrui1;
	}

	public void setVip1Fenrui1(Double vip1Fenrui1) {
		this.vip1Fenrui1 = vip1Fenrui1;
	}

	public Double getVip1Fenrui2() {
		return vip1Fenrui2;
	}

	public void setVip1Fenrui2(Double vip1Fenrui2) {
		this.vip1Fenrui2 = vip1Fenrui2;
	}

	public Double getVip1Fenrui3() {
		return vip1Fenrui3;
	}

	public void setVip1Fenrui3(Double vip1Fenrui3) {
		this.vip1Fenrui3 = vip1Fenrui3;
	}

	public Double getVip2Fenrui2() {
		return vip2Fenrui2;
	}

	public void setVip2Fenrui2(Double vip2Fenrui2) {
		this.vip2Fenrui2 = vip2Fenrui2;
	}

	public Double getVip2Fenrui3() {
		return vip2Fenrui3;
	}

	public void setVip2Fenrui3(Double vip2Fenrui3) {
		this.vip2Fenrui3 = vip2Fenrui3;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPeisong() {
		return peisong;
	}

	public void setPeisong(String peisong) {
		this.peisong = peisong;
	}

	public Long getSjid() {
		return sjid;
	}

	public void setSjid(Long sjid) {
		this.sjid = sjid;
	}

	public ChangShang getChangshang() {
		return changshang;
	}

	public void setChangshang(ChangShang changshang) {
		this.changshang = changshang;
	}

	public Double getDjqse() {
		return djqse;
	}

	public void setDjqse(Double djqse) {
		this.djqse = djqse;
	}

	public Integer getKetui() {
		return ketui;
	}

	public void setKetui(Integer ketui) {
		this.ketui = ketui;
	}

	public String getZuobiao() {
		return zuobiao;
	}

	public void setZuobiao(String zuobiao) {
		this.zuobiao = zuobiao;
	}

	public String getDizhi() {
		return dizhi;
	}

	public void setDizhi(String dizhi) {
		this.dizhi = dizhi;
	}

	public Long getTjr1() {
		return tjr1;
	}

	public void setTjr1(Long tjr1) {
		this.tjr1 = tjr1;
	}

	public Long getTjr2() {
		return tjr2;
	}

	public void setTjr2(Long tjr2) {
		this.tjr2 = tjr2;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

}
